import useUserStore from '@/store/modules/user';
let userStore = useUserStore();
export const hasAuth = (codes: string[]): Record<string, boolean> => {    
    const result: Record<string, boolean> = {};
    codes.forEach(code => {
        result[code] = userStore.userInfo.funcCodes.includes(code);
        // result[code] = true;
    });
    return result;    
}    
